package com.dm.server;
import cn.dev33.satoken.sso.SaSsoManager;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableAsync;

@MapperScan(basePackages = "com.dm.server.mapper") // 强制覆盖扫描范围
@SpringBootApplication
@EnableAsync
@EnableAspectJAutoProxy(exposeProxy = true)//这个注解的意思是暴露代理对象
public class TestEmoApplication {
    public static void main(String[] args) {
        SpringApplication.run(TestEmoApplication.class, args);
        System.out.println();
        System.out.println("---------------------- Sa-Token SSO 统一认证中心启动成功 ----------------------");
        System.out.println("配置信息：" + SaSsoManager.getServerConfig());
        System.out.println();
    }
}
